﻿// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace System.Mobile.Mvc
{    
    /// <summary>
    /// Non-generic IView interface
    /// </summary>
    public interface IView
    {
        // Standard WinForm methods that 
        // would not require implementation
        void Show();        
        void Close();
        void Hide();
        DialogResult ShowDialog();
        // Event indicating that something has been changed in the View
        event StateChangedEventHandler ViewStateChanged;
        // The View data
        ViewDataDictionary ViewData { get; set; }
        object Model { get; set; }
        // Method to tell the View to update itself
        void UpdateView(string key); 
    }
}
